home *** CD-ROM | disk | FTP | other *** search
- CONST DriveOk = 0
- DECLARE FUNCTION IsDriveOk (szDrive$) AS INTEGER
- '*************************************************************************
- FUNCTION IsDriveOk (szDrive$) STATIC AS INTEGER
- '$ifdef DEBUG
- if FValidDrive(szDrive$) = 0 then
- BadArgErr 1, "IsDriveOk", szDrive$
- end if
- '$endif ''DEBUG
- IsDriveOk = FIsRemoteDrive(ASC(UCASE$(szDrive$)) - ASC("A") + 1)
- END FUNCTION
-
- DECLARE FUNCTION CutCmd (szPath$) AS STRING
- '*************************************************************************
- FUNCTION CutCmd (szPath$) STATIC AS STRING
- CutCmd = MID$(szPath$,6)
- END FUNCTION
-
- DECLARE FUNCTION IsCmd (szPath$) AS INTEGER
- '*************************************************************************
- FUNCTION IsCmd (szPath$) STATIC AS Integer
- if MID$(szPath$,1,1) = "$" AND MID$(szPath$,5,1) = "=" THEN
- if MID$(szPath$,2,3) = "NET" then
- IsCmd=1
- else
- IsCmd=0
- end if
- else
- IsCmd = 0
- end if
- END FUNCTION
-